package com.example.myapplicationndk.mvp.bean;

public class User {
    private String login;
    private String name;
    private int followers;
    private int following;

    public User(String login, String name, int followers, int following) {
        this.login = login;
        this.name = name;
        this.followers = followers;
        this.following = following;
    }

    public int getFollowers() {
        return followers;
    }

    public void setFollowers(int followers) {
        this.followers = followers;
    }

    public int getFollowing() {
        return following;
    }

    public void setFollowing(int following) {
        this.following = following;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"login\":\"")
                .append(login).append('\"');
        sb.append(",\"name\":\"")
                .append(name).append('\"');
        sb.append(",\"followers\":")
                .append(followers);
        sb.append(",\"following\":")
                .append(following);
        sb.append('}');
        return sb.toString();
    }
}